package com.wenjie.original.service.impl;

import com.mybatisflex.core.query.QueryWrapper;
import com.wenjie.original.entity.SysDbEnum;
import com.wenjie.original.entity.table.SysDbEnumTableDef;
import com.wenjie.original.flex_config.baseInterface.Cus_ServiceImp;
import com.wenjie.original.mapper.SysDbEnumMapper;
import com.wenjie.original.service.ISysDbEnumService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 枚举映射 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-09-06 15:32:13
 */
@Service
public class SysDbEnumServiceImpl extends Cus_ServiceImp<SysDbEnumMapper, SysDbEnum> implements ISysDbEnumService {

    @Override
    public List<SysDbEnum> listBySysdbFieldId(Long sysdbFieldId) {
        return this.list(QueryWrapper.create().where(SysDbEnumTableDef.SYS_DB_ENUM.SYS_DB_FIELD_ID.eq(sysdbFieldId)));
    }
}
